/**
 * Created by thinkl on 2017/6/20.
 */

$(function () {
    var app_data = {
        commodity_detail: {},
        property:''
    };
    var app = new Vue({
        el: '#commodity_detail',
        data: app_data,
        methods: {
            change:function (obj) {
                alert(obj);
            }
        }
    });
    var commodity_id = getQueryString('id');
    $.post('/commodity/get_commodity', {commodity_id: commodity_id}, function (data) {
        var l = JSON.parse(data);
        app_data.commodity_detail = l.result;
        // $('input[type="radio"][name="property"]').click(function () {
        //     var n = $('input[type="radio"][name="property"]:checked').val();
        // })
    })
});
function go_commodity_mod() {
    var commodity_id = getQueryString('id');
    location.href = '/static/commodity_mod/commodity_mod.html?id=' + commodity_id
}